package net.lainiao.manager.control;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.mvc.method.annotation.ModelAndViewMethodReturnValueHandler;

/**
 * Created by Administrator on 2017/1/7.
 */
@Controller
@RequestMapping(value = "/test")
public class TestControl {

    @RequestMapping(value = "/index")
    public String index(ModelMap modelMap){
        modelMap.put("mess","这个是BTL 模版的测试引擎");
        return "/test/index";
    }

    @RequestMapping(value = "/rec")
    public String rec(ModelMap modelMap){
        modelMap.put("mess","这个是BTL 模版的测试引擎");
        return "redirect:/main";
    }

    @RequestMapping(value = "/index1")
    public String index1(ModelMap modelMap){
        modelMap.put("mess","这个是测试layout");
        return "/test/index1";
    }
}
